package com.zt.teacher.service;

import com.zt.common.Do.PrivateLetterDO;
import com.zt.common.Do.PrivateLetterWithInfoDO;
import com.zt.common.pojo.PrivateLetter;
import com.zt.teacher.dto.PrivateLetterDTO;
import com.zt.teacher.dto.PrivateLetterDetailDTO;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.List;

/**
 * description:
 * author:zt
 * date:2022-02-07
 */
public interface PrivateLetterService {

    ArrayList<PrivateLetterWithInfoDO> getRecord(HttpServletRequest request, String semester);

    String insert(PrivateLetterDTO privateLetterDTO, HttpServletRequest request);

    List<PrivateLetterDO> getDetail(HttpServletRequest request, PrivateLetterDetailDTO privateLetterDetailDTO);

    void readLetter(HttpServletRequest request,PrivateLetterDetailDTO privateLetterDetailDTO);

    int getUnreadCount(HttpServletRequest request,String semester);
}
